﻿namespace = pbi_objective_publishing_industry_events

#大洋を渡った最初のことば（海を超えて 完了）
pbi_objective_publishing_industry_events.100 = {
	type = country_event
	placement = scope:target_region

	title = pbi_objective_publishing_industry_events.100.t
	desc = pbi_objective_publishing_industry_events.100.d
  flavor = pbi_objective_publishing_industry_events.100.f

  gui_window = event_window_2char
  left_icon = scope:target_leader_1
  right_icon = scope:target_leader_2
	
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
		save_scope_as = target_country_1
		random_scope_character = {
			limit = {
				is_ruler = yes
			}
			save_scope_as = target_leader_1
		}
		if = {
			limit = {
				OR = {
					country_is_in_east_asia = yes
					country_is_in_central_asia = yes
				}
			}
			random_state = {
				limit = {
					state_region = s:STATE_CALIFORNIA
				}
				owner = {
					save_scope_as = target_country_2
					random_scope_character = {
						limit = {
							is_ruler = yes
						}
						save_scope_as = target_leader_2
					}
				}
				save_scope_as = target_region
			}
		}
		else_if = {
			limit = {
				OR = {
					country_is_in_europe = yes
					country_is_in_middle_east = yes
					country_is_in_africa = yes
				}
			}
			random_state = {
				limit = {
					state_region = s:STATE_DISTRICT_OF_COLUMBIA
				}
				owner = {
					save_scope_as = target_country_2
					random_scope_character = {
						limit = {
							is_ruler = yes
						}
						save_scope_as = target_leader_2
					}
				}
				save_scope_as = target_region
			}
		}
		else = {
			random_state = {
				limit = {
					state_region = s:STATE_HOME_COUNTIES
				}
				owner = {
					save_scope_as = target_country_2
					random_scope_character = {
						limit = {
							is_ruler = yes
						}
						save_scope_as = target_leader_2
					}
				}
				save_scope_as = target_region
			}
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.100.a
		default_option = yes
		add_modifier = {
			name = pbi_country_modifier_transoceanic_telegraph_cable
		}
	}
}
#失敗
pbi_objective_publishing_industry_events.101 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.101.t
	desc = pbi_objective_publishing_industry_events.101.d
  flavor = pbi_objective_publishing_industry_events.101.f

	event_image = {
    video = "gfx/event_pictures/unspecific_politicians_arguing.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/asia/politician_parliament_motion"
	
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {

	}

	option = {
		name = pbi_objective_publishing_industry_events.101.a
		default_option = yes
		add_investment_pool = -30000000
	}
}
#提督を選ぶ
pbi_objective_publishing_industry_events.102 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.102.t
	desc = pbi_objective_publishing_industry_events.102.d
  flavor = pbi_objective_publishing_industry_events.102.f

  event_image = {
    video = "gfx/event_pictures/unspecific_world_fair.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/world_fair"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
		set_variable = pbi_flag_objective_publishing_industry_events_102_on_going
		random_scope_character = {
			limit = {
				is_ruler = no
				is_heir = no
				has_role = admiral
			}
			save_scope_as = target_character_1
		}
		random_scope_character = {
			limit = {
				is_ruler = no
				is_heir = no
				has_role = admiral
				NOT = {
					THIS = scope:target_character_1
				}
			}
			save_scope_as = target_character_2
		}
		random_scope_character = {
			limit = {
				is_ruler = no
				is_heir = no
				has_role = admiral
				NOR = {
					THIS = scope:target_character_1
					THIS = scope:target_character_2
				}
			}
			save_scope_as = target_character_3
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.102.a
		trigger = {
			exists = scope:target_character_1
		}
		scope:target_character_1 = {
			set_variable = pbi_flag_character_in_laying
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_102_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.102.b
		trigger = {
			exists = scope:target_character_2
		}
		scope:target_character_2 = {
			set_variable = pbi_flag_character_in_laying
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_102_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.102.c
		trigger = {
			exists = scope:target_character_3
		}
		scope:target_character_3 = {
			set_variable = pbi_flag_character_in_laying
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_102_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.102.e
		custom_tooltip = pbi_objective_publishing_industry_events.102.tt
		remove_variable = pbi_flag_objective_publishing_industry_events_102_on_going
		default_option = yes
	}
}
#資金集め　開始
pbi_objective_publishing_industry_events.103 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.103.t
	desc = pbi_objective_publishing_industry_events.103.d
  flavor = pbi_objective_publishing_industry_events.103.f

  event_image = {
    video = "gfx/event_pictures/europenorthamerica_capitalists_meeting.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/capitalists_meeting"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea = 1
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.103.a
		custom_tooltip = pbi_objective_publishing_industry_events.103.tt
		default_option = yes
	}
}
#資金集め　難航
pbi_objective_publishing_industry_events.104 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.104.t
	desc = pbi_objective_publishing_industry_events.104.d
  flavor = pbi_objective_publishing_industry_events.104.f

  event_image = {
    video = "gfx/event_pictures/europenorthamerica_rich_and_poor.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/rich_and_poor"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		any_scope_state = {
			has_building = building_urban_center
			any_scope_pop = {
				is_pop_type = capitalists
			}
			NOT = {
				has_modifier = pbi_state_modifier_laying_cables_cost
			}
		}
		var:pbi_var_je_objective_across_the_sea > 2
		var:pbi_var_je_objective_across_the_sea < 8
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_building = building_urban_center
				any_scope_pop = {
					is_pop_type = capitalists
				}
				NOT = {
					has_modifier = pbi_state_modifier_laying_cables_cost
				}
			}
			save_scope_as = target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.104.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.bad
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = -2
			}
		}
		scope:target_state = {
			add_modifier = {
				name = pbi_state_modifier_laying_cables_cost
				multiplier = -1
				months = short_modifier_time
			}
		}
	}
}
#資金集め　団体の支援
pbi_objective_publishing_industry_events.105 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.105.t
	desc = pbi_objective_publishing_industry_events.105.d
  flavor = pbi_objective_publishing_industry_events.105.f

  event_image = {
    video = "gfx/event_pictures/unspecific_signed_contract.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea > 1
		var:pbi_var_je_objective_across_the_sea < 8
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
		random_interest_group = {
			limit = {
				is_marginal = no
			}
			save_scope_as = target_ig
		}
		add_investment_pool = 1000000
	}

	option = {
		name = pbi_objective_publishing_industry_events.105.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.good
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = 1
			}
		}
		scope:target_ig = {
			add_modifier = {
				name = pbi_ig_modifier_sponsor_of_a_major_project
				months = short_modifier_time
				is_decaying = yes
			}
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.105.b
	}
}
#資金集め　政府の支援
pbi_objective_publishing_industry_events.106 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.106.t
	desc = pbi_objective_publishing_industry_events.106.d
  flavor = pbi_objective_publishing_industry_events.106.f

  event_image = {
    video = "gfx/event_pictures/unspecific_signed_contract.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		NOT = {
			has_modifier = pbi_country_modifier_laying_cables_cost
		}
		var:pbi_var_je_objective_across_the_sea > 1
		var:pbi_var_je_objective_across_the_sea < 8
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.106.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.good
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = 2
			}
		}
		add_modifier = {
			name = pbi_country_modifier_laying_cables_cost
			multiplier = money_amount_multiplier_medium
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.106.b
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.bad
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = -2
			}
		}
	}
}
#敷設　開始
pbi_objective_publishing_industry_events.107 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.107.t
	desc = pbi_objective_publishing_industry_events.107.d
  flavor = pbi_objective_publishing_industry_events.107.f

	event_image = {
    video = "gfx/event_pictures/unspecific_steam_ship.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/steam_ship"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea = 8
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_building = building_urban_center
				has_building = building_port
			}
			save_scope_as = target_state
		}
		set_variable = {
			name = pbi_flag_target_port
			value = scope:target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.107.a
		default_option = yes
		custom_tooltip = pbi_objective_publishing_industry_events.107.tt
		if = {
			limit = {
				has_modifier = pbi_country_modifier_laying_cables_cost
			}
			remove_modifier = pbi_country_modifier_laying_cables_cost
		}
		add_investment_pool = 30000000
		add_modifier = {
			name = modifier_large_expedition_cost
		}
	}
}
#敷設　切断
pbi_objective_publishing_industry_events.108 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.108.t
	desc = pbi_objective_publishing_industry_events.108.d
  flavor = pbi_objective_publishing_industry_events.108.f

	event_image = {
    video = "gfx/event_pictures/pbi_submarine_cable.bk2"
	}
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/naval_battle"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea > 14
		var:pbi_var_je_objective_across_the_sea < 18
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.108.a
		default_option = yes
		add_investment_pool = -3500000
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.bad
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = -2
			}
		}
	}
}
#敷設　嵐で中断
pbi_objective_publishing_industry_events.109 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.109.t
	desc = pbi_objective_publishing_industry_events.109.d
  flavor = pbi_objective_publishing_industry_events.109.f

	event_image = {
    video = "gfx/event_pictures/pbi_submarine_cable.bk2"
	}
	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/naval_battle"
	
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea > 14
		var:pbi_var_je_objective_across_the_sea < 18
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.109.a
		default_option = yes
		add_investment_pool = -3500000
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.bad
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = -1
			}
		}
	}
}
#敷設　巨大生物により切断
pbi_objective_publishing_industry_events.110 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.110.t
	desc = pbi_objective_publishing_industry_events.110.d
  flavor = pbi_objective_publishing_industry_events.110.f

	event_image = {
    video = "gfx/event_pictures/pbi_submarine_cable.bk2"
	}
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/naval_battle"
	
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 1
	
	trigger = {
		NOT = {
			has_variable = pbi_flag_did_objective_publishing_industry_events_110
		}
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea > 14
		var:pbi_var_je_objective_across_the_sea < 18
	}

	immediate = {
		set_variable = pbi_flag_did_objective_publishing_industry_events_110
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.110.a
		default_option = yes
		add_investment_pool = -3500000
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.bad
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = -3
			}
		}
	}
}
#敷設　完了
pbi_objective_publishing_industry_events.111 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.111.t
	desc = pbi_objective_publishing_industry_events.111.d
  flavor = pbi_objective_publishing_industry_events.111.f

	event_image = {
    video = "gfx/event_pictures/unspecific_steam_ship.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/steam_ship"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea = 18
		exists = var:pbi_flag_target_port
	}

	immediate = {
		var:pbi_flag_target_port = {
			save_scope_as = target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.111.a
		default_option = yes
		remove_modifier = modifier_large_expedition_cost
		scope:target_character = {
			set_character_busy = no
		}
	}
}
#テスト　通信失敗
pbi_objective_publishing_industry_events.112 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.112.t
	desc = pbi_objective_publishing_industry_events.112.d
  flavor = pbi_objective_publishing_industry_events.101.f

  event_image = {
    video = "gfx/event_pictures/europenorthamerica_rich_and_poor.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/rich_and_poor"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		var:pbi_var_je_objective_across_the_sea > 18
		var:pbi_var_je_objective_across_the_sea < 20
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.101.a
		default_option = yes
		set_variable = {
			name = pbi_var_je_objective_across_the_sea
			value = 0
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			remove_variable = pbi_flag_character_in_laying
		}
	}
}
#資金集め　順調
pbi_objective_publishing_industry_events.113 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.113.t
	desc = pbi_objective_publishing_industry_events.113.d
  flavor = pbi_objective_publishing_industry_events.113.f

  event_image = {
    video = "gfx/event_pictures/europenorthamerica_capitalists_meeting.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/capitalists_meeting"

	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	duration = 1
	
	trigger = {
		any_scope_character = {
			has_variable = pbi_flag_character_in_laying
		}
		any_scope_state = {
			has_building = building_urban_center
			any_scope_pop = {
				is_pop_type = capitalists
			}
			NOT = {
				has_modifier = pbi_state_modifier_laying_cables_cost
			}
		}
		var:pbi_var_je_objective_across_the_sea > 1
		var:pbi_var_je_objective_across_the_sea < 8
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_building = building_urban_center
				any_scope_pop = {
					is_pop_type = capitalists
				}
				NOT = {
					has_modifier = pbi_state_modifier_laying_cables_cost
				}
			}
			save_scope_as = target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_laying
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.103.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.100.good
			change_variable = {
				name = pbi_var_je_objective_across_the_sea
				add = 1
			}
		}
		scope:target_state = {
			add_modifier = {
				name = pbi_state_modifier_laying_cables_cost
				months = short_modifier_time
			}
		}
	}
}

#ベストセラーの誕生（ベストセラー 完了）
pbi_objective_publishing_industry_events.200 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.200.t
	desc = pbi_objective_publishing_industry_events.200.d
  flavor = pbi_objective_publishing_industry_events.200.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.200.a
		default_option = yes
		scope:target_character = {
			set_character_busy = no
			add_modifier = {
				name = pbi_character_modifier_popular_writer
			}
		}
		add_modifier = {
			name = pbi_country_modifier_best_seller
			months = normal_modifier_time
			is_decaying = yes
		}
	}
}
#失敗
pbi_objective_publishing_industry_events.201 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.201.t
	desc = pbi_objective_publishing_industry_events.201.d
  flavor = pbi_objective_publishing_industry_events.201.f

	event_image = {
    video = "gfx/event_pictures/unspecific_politicians_arguing.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/asia/politician_parliament_motion"
	
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.201.a
		default_option = yes
		custom_tooltip = pbi_objective_publishing_industry_events.202.e.tt
	}
}
#作家を選ぶ
pbi_objective_publishing_industry_events.202 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.202.t
	desc = pbi_objective_publishing_industry_events.202.d
  flavor = pbi_objective_publishing_industry_events.202.f

  event_image = {
    video = "gfx/event_pictures/middleeast_middleclass_cafe.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/middleeast/middleclass_cafe"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
		set_variable = pbi_flag_objective_publishing_industry_events_202_on_going
		random_scope_state = {
			limit = {
				has_building = building_pbi_publishing_industry
			}
			save_scope_as = target_state
		}
		set_variable = {
			name = pbi_flag_bestseller_target
			value = scope:target_state
		}
		random_scope_character = {
			limit = {
				is_ruler = no
				is_heir = no
			}
			save_scope_as = target_character_1
		}
		random_scope_character = {
			limit = {
				exists = scope:target_character_1
				is_ruler = no
				is_heir = no
				NOT = {
					THIS = scope:target_character_1
				}
			}
			save_scope_as = target_character_2
		}
		random_scope_character = {
			limit = {
				exists = scope:target_character_2
				is_ruler = no
				is_heir = no
				NOR = {
					THIS = scope:target_character_1
					THIS = scope:target_character_2
				}
			}
			save_scope_as = target_character_3
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.202.a
		trigger = {
			exists = scope:target_character_1
		}
		scope:target_character_1 = {
			custom_tooltip = pbi_objective_publishing_industry_events.202.a.tt
			set_variable = pbi_flag_character_in_writing
			if = {
				limit = {
					NOT = {
						has_trait = pbi_trait_journalist
					}
				}
				add_trait = pbi_trait_journalist
			}
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_202_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.202.b
		trigger = {
			exists = scope:target_character_2
		}
		scope:target_character_2 = {
			custom_tooltip = pbi_objective_publishing_industry_events.202.a.tt
			set_variable = pbi_flag_character_in_writing
			if = {
				limit = {
					NOT = {
						has_trait = pbi_trait_journalist
					}
				}
				add_trait = pbi_trait_journalist
			}
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_202_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.202.c
		trigger = {
			exists = scope:target_character_3
		}
		scope:target_character_3 = {
			custom_tooltip = pbi_objective_publishing_industry_events.202.a.tt
			set_variable = pbi_flag_character_in_writing
			if = {
				limit = {
					NOT = {
						has_trait = pbi_trait_journalist
					}
				}
				add_trait = pbi_trait_journalist
			}
			set_character_busy = yes
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_202_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.202.e
		custom_tooltip = pbi_objective_publishing_industry_events.202.e.tt
		remove_variable = pbi_flag_objective_publishing_industry_events_202_on_going
		default_option = yes
	}
}
#筆が進まない
pbi_objective_publishing_industry_events.203 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.203.t
	desc = pbi_objective_publishing_industry_events.203.d
  flavor = pbi_objective_publishing_industry_events.203.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_bestseller > 2
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.203.a
		default_option = yes
		scope:target_character = {
			add_modifier = {
				name = pbi_character_modifier_hardwork
				months = 6
				is_decaying = yes
			}
		}
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.good
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = 1
			}
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.203.b
		scope:target_character = {
			add_modifier = {
				name = pbi_character_modifier_change_of_pace
				months = 6
				is_decaying = yes
			}
		}
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.bad
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = -2
			}
		}
	}
}
#作家が校閲を認めない
pbi_objective_publishing_industry_events.204 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.204.t
	desc = pbi_objective_publishing_industry_events.204.d
  flavor = pbi_objective_publishing_industry_events.204.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_bestseller > 4
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.204.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.bad
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = -2
			}
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.204.b
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.stop
			set_variable = pbi_flag_objective_publishing_industry_events_200_risky
		}
	}
}
#内容への批判
pbi_objective_publishing_industry_events.205 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.205.t
	desc = pbi_objective_publishing_industry_events.205.d
  flavor = pbi_objective_publishing_industry_events.205.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_bestseller > 4
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		any_interest_group = {
			NOT = {
				has_modifier = pbi_ig_modifier_regulation_of_expression
			}
			law_stance = {
				law = law_type:law_censorship
				value > neutral
			}
			law_stance = {
				law = law_type:law_state_religion
				value > neutral
			}
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		random_interest_group = {
			limit = {
				NOT = {
					has_modifier = pbi_ig_modifier_regulation_of_expression
				}
				law_stance = {
					law = law_type:law_censorship
					value > neutral
				}
				law_stance = {
					law = law_type:law_state_religion
					value > neutral
				}
			}
			save_scope_as = target_ig
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.205.a
		default_option = yes
		scope:target_ig = {
			add_modifier = {
				name = pbi_ig_modifier_regulation_of_expression
				months = short_modifier_time
			}
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.205.b
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.bad
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = -3
			}
		}
		scope:target_ig = {
			add_modifier = {
				name = pbi_ig_modifier_regulation_of_expression
				months = short_modifier_time
				multiplier = -1
			}
		}
	}
}
#剽窃疑惑
pbi_objective_publishing_industry_events.206 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.206.t
	desc = pbi_objective_publishing_industry_events.206.d
  flavor = pbi_objective_publishing_industry_events.206.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	cooldown = { months = 6 }

	trigger = {
		var:pbi_var_je_objective_bestseller > 4
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.206.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.bad
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = -2
			}
		}
	}
}
#予言的事件で作品が注目される
pbi_objective_publishing_industry_events.207 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.207.t
	desc = pbi_objective_publishing_industry_events.207.d
  flavor = pbi_objective_publishing_industry_events.207.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	cooldown = { months = 6 }

	trigger = {
		var:pbi_var_je_objective_bestseller > 4
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
	}

	immediate = {
		random_scope_state = {
			limit = {
				has_building = building_urban_center
			}
			save_scope_as = target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.207.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.good
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = 1
			}
		}
	}
}
#著名人の好意的感想
pbi_objective_publishing_industry_events.208 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.208.t
	desc = pbi_objective_publishing_industry_events.208.d
  flavor = pbi_objective_publishing_industry_events.208.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character_1

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	cooldown = { months = 6 }

	trigger = {
		var:pbi_var_je_objective_bestseller > 2
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		random_scope_character = {
			limit = {
				NOT = {
					THIS = scope:target_character
					is_heir = no
					is_ruler = no
				}
				has_trait = pbi_trait_journalist
			}
			interest_group = {
				save_scope_as = target_ig_1
			}
			save_scope_as = target_character_1
		}
		if = {
			limit = {
				NOT = {
					exists = scope:target_character_1
				}
			}
			random_scope_character = {
				limit = {
					NOT = {
						THIS = scope:target_character
					}
					is_heir = no
					is_ruler = no
				}
				interest_group = {
					save_scope_as = target_ig_1
				}
				save_scope_as = target_character_1
			}
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.208.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.good
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = 1
			}
		}
		scope:target_character_1 = {
			add_modifier = {
				name = pbi_character_modifier_wise_counselor
				months = short_modifier_time
				is_decaying = yes
			}
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.208.b
	}
}
#著名人の批判的感想
pbi_objective_publishing_industry_events.209 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.209.t
	desc = pbi_objective_publishing_industry_events.209.d
  flavor = pbi_objective_publishing_industry_events.209.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character_1

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	cooldown = { months = 6 }

	trigger = {
		var:pbi_var_je_objective_bestseller > 2
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		random_scope_character = {
			limit = {
				NOT = {
					THIS = scope:target_character
				}
				has_trait = pbi_trait_journalist
			}
			interest_group = {
				save_scope_as = target_ig_1
			}
			save_scope_as = target_character_1
		}
		if = {
			limit = {
				NOT = {
					exists = scope:target_character_1
				}
			}
			random_scope_character = {
				limit = {
					NOT = {
						THIS = scope:target_character
					}
				}
				interest_group = {
					save_scope_as = target_ig_1
				}
				save_scope_as = target_character_1
			}
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.209.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.bad
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = -2
			}
		}
		scope:target_character_1 = {
			add_modifier = {
				name = pbi_character_modifier_wise_counselor
				months = short_modifier_time
				is_decaying = yes
			}
		}
	}
}
#徐々に人気が出る
pbi_objective_publishing_industry_events.210 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.210.t
	desc = pbi_objective_publishing_industry_events.210.d
  flavor = pbi_objective_publishing_industry_events.210.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_bestseller > 2
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.210.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.good
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = 1
			}
		}
	}
}
#特定地域のポップに人気
pbi_objective_publishing_industry_events.211 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.211.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_variable = pbi_flag_objective_publishing_industry_events_211_rich
				}
				desc = pbi_objective_publishing_industry_events.211.d.rich
			}
			triggered_desc = {
				trigger = {
					has_variable = pbi_flag_objective_publishing_industry_events_211_middle
				}
				desc = pbi_objective_publishing_industry_events.211.d.middle
			}
			desc = pbi_objective_publishing_industry_events.211.d.poor
		}
	}
  flavor = pbi_objective_publishing_industry_events.211.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_bestseller > 4
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_list = {
			30 = {
				set_variable = pbi_flag_objective_publishing_industry_events_211_rich
			}
			30 = {
				set_variable = pbi_flag_objective_publishing_industry_events_211_middle
			}
			30 = {
				set_variable = pbi_flag_objective_publishing_industry_events_211_poor
			}
		}
		random_scope_state = {
			limit = {
				has_building = building_urban_center
			}
			save_scope_as = target_state
		}
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.211.a
		default_option = yes
		custom_tooltip = {
			text = pbi_objective_publishing_industry_events.200.good
			change_variable = {
				name = pbi_var_je_objective_bestseller
				add = 1
			}
		}
		if = {
			limit = {
				has_variable = pbi_flag_objective_publishing_industry_events_211_rich
			}
			scope:target_state = {
				add_modifier = {
					name = pbi_state_modifier_bestseller_rich
					months = short_modifier_time
				}
			}
		}
		else_if = {
			limit = {
				has_variable = pbi_flag_objective_publishing_industry_events_211_middle
			}
			scope:target_state = {
				add_modifier = {
					name = pbi_state_modifier_bestseller_middle
					months = short_modifier_time
				}
			}
		}
		else = {
			scope:target_state = {
				add_modifier = {
					name = pbi_state_modifier_bestseller_poor
					months = short_modifier_time
				}
			}
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_211_rich
		remove_variable = pbi_flag_objective_publishing_industry_events_211_middle
		remove_variable = pbi_flag_objective_publishing_industry_events_211_poor
	}
}
#出版停止
pbi_objective_publishing_industry_events.212 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.212.t
	desc = pbi_objective_publishing_industry_events.212.d
  flavor = pbi_objective_publishing_industry_events.212.f

  gui_window = event_window_1char_tabloid
  left_icon = scope:target_character

  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" 
  on_opened_soundeffect = "event:/SFX/Events/misc/1Character_Banner"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 1
	
	trigger = {
		has_variable = pbi_flag_objective_publishing_industry_events_200_risky
		var:pbi_var_je_objective_bestseller > 6
		var:pbi_var_je_objective_bestseller < 11
		has_technology_researched = realism
		any_scope_character = {
			has_variable = pbi_flag_character_in_writing
		}
		exists = var:pbi_flag_bestseller_target
	}

	immediate = {
		random_scope_character = {
			limit = {
				has_variable = pbi_flag_character_in_writing
			}
			save_scope_as = target_character
		}
		var:pbi_flag_bestseller_target = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.212.a
		default_option = yes
		scope:target_character = {
			remove_variable = pbi_flag_character_in_writing
		}
	}
}
#戦場のジャーナリスト（戦場より 完了）
pbi_objective_publishing_industry_events.300 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.300.t
	desc = pbi_objective_publishing_industry_events.300.d
  flavor = pbi_objective_publishing_industry_events.300.f

  event_image = {
    video = "gfx/event_pictures/europenorthamerica_before_the_battle.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/before_the_battle"

	icon = "gfx/interface/icons/event_icons/event_military.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
		random_scope_war = {
			limit = {
				any_scope_front = {
					any_scope_state = {
						NOT = { owner = ROOT }
					}
					any_scope_general = {
						owner = ROOT
					}
				}
			}
			save_scope_as = target_war
			random_scope_front = {
				limit = {
					any_scope_state = {
						NOT = { owner = ROOT }
					}
					any_scope_general = {
						owner = ROOT
					}
				}
				save_scope_as = target_front
				random_scope_state = {
					limit = {
						NOT = { owner = ROOT }
					}
					save_scope_as = target_state
				}
				random_scope_general = {
					limit = {
						owner = ROOT
					}
					save_scope_as = target_character
				}
			}
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.300.a
		default_option = yes
		add_modifier = {
			name = pbi_country_modifier_volunteer_soldier
			months = short_modifier_time
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.300.b
		add_modifier = {
			name = pbi_country_modifier_contribution
			months = short_modifier_time
		}
	}
}
#外交問題（電報事件 完了）
pbi_objective_publishing_industry_events.400 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.400.t
	desc = pbi_objective_publishing_industry_events.400.d
  flavor = pbi_objective_publishing_industry_events.400.f

  gui_window = event_window_2char
  left_icon = scope:target_character_1
  right_icon = scope:target_character_2

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
		has_variable = pbi_flag_selected_incident_target
		exists = var:pbi_flag_selected_incident_target
		exists = var:pbi_flag_selected_incident_target_state
	}

	immediate = {
		random_scope_character = {
			limit = {
				is_ruler = yes
			}
			save_scope_as = target_character_1
		}
		var:pbi_flag_selected_incident_target = {
			random_scope_character = {
				limit = {
					is_ruler = yes
				}
				save_scope_as = target_character_2
			}
			save_scope_as = target_country
		}
		var:pbi_flag_selected_incident_target_state = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.400.a
		default_option = yes
		scope:target_country = {
			add_radicals = {
				value = 0.15
			}
			create_incident = {
				country = ROOT
				value = 50
			}
		}
	}
}
#失敗
pbi_objective_publishing_industry_events.401 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.401.t
	desc = pbi_objective_publishing_industry_events.401.d
  flavor = pbi_objective_publishing_industry_events.401.f

	event_image = {
    video = "gfx/event_pictures/unspecific_politicians_arguing.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/asia/politician_parliament_motion"
	
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
	}

	option = {
		name = pbi_objective_publishing_industry_events.401.a
		default_option = yes
	}
	option = {
		name = pbi_objective_publishing_industry_events.401.b
	}
}
#国家を選ぶ
pbi_objective_publishing_industry_events.402 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.402.t
	desc = pbi_objective_publishing_industry_events.402.d
  flavor = pbi_objective_publishing_industry_events.402.f

  event_image = {
    video = "gfx/event_pictures/southamerica_aristocrats.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
	}

	immediate = {
		set_variable = pbi_flag_objective_publishing_industry_events_402_on_going
		random_rival_country = {
			limit = {
				has_technology_researched = nationalism
				has_diplomatic_pact = {
					who = ROOT
					type = rivalry
				}
			}
			save_scope_as = target_country_1
		}
		random_rival_country = {
			limit = {
				exists = scope:target_country_1
				NOT = {
					THIS = scope:target_country_1
				}
				has_technology_researched = nationalism
				has_diplomatic_pact = {
					who = ROOT
					type = rivalry
				}
			}
			save_scope_as = target_country_2
		}
		random_rival_country = {
			limit = {
				exists = scope:target_country_2
				NOR = {
					THIS = scope:target_country_1
					THIS = scope:target_country_2
				}
				has_technology_researched = nationalism
				has_diplomatic_pact = {
					who = ROOT
					type = rivalry
				}
			}
			save_scope_as = target_country_3
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.402.a
		trigger = {
			exists = scope:target_country_1
		}
		set_variable = {
			name = pbi_flag_selected_incident_target
			value = scope:target_country_1
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_402_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.402.b
		trigger = {
			exists = scope:target_country_2
		}
		set_variable = {
			name = pbi_flag_selected_incident_target
			value = scope:target_country_2
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_402_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.402.c
		trigger = {
			exists = scope:target_country_3
		}
		set_variable = {
			name = pbi_flag_selected_incident_target
			value = scope:target_country_3
		}
		remove_variable = pbi_flag_objective_publishing_industry_events_402_on_going
	}
	option = {
		name = pbi_objective_publishing_industry_events.402.e
		custom_tooltip = pbi_objective_publishing_industry_events.402.tt
		remove_variable = pbi_flag_objective_publishing_industry_events_402_on_going
		default_option = yes
	}
}
#関心地域でのトラブル
pbi_objective_publishing_industry_events.403 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.403.t
	desc = pbi_objective_publishing_industry_events.403.d
  flavor = pbi_objective_publishing_industry_events.403.f

  event_image = {
    video = "gfx/event_pictures/southamerica_aristocrats.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 1
	
	trigger = {
		exists = var:pbi_flag_selected_incident_target
		var:pbi_var_je_objective_telegram_incident > 1
		NOT = {
			has_variable = pbi_flag_did_objective_publishing_industry_events_403
		}
	}

	immediate = {
		set_variable = pbi_flag_did_objective_publishing_industry_events_403
		var:pbi_flag_selected_incident_target = {
			save_scope_as = target_country
		}
		random_state_region = {
			limit = {
				region = {
					ROOT = {
						has_interest_marker_in_region = PREV
					}
					scope:target_country = {
						has_interest_marker_in_region = PREV
					}
					any_scope_state = {
						is_capital = no
					}
				}
			}
			region = {
				random_scope_state = {
					limit = {
						is_capital = no
					}
					save_scope_as = target_state
				}
			}
		}
		set_variable = {
			name = pbi_flag_selected_incident_target_state
			value = scope:target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.403.a
		default_option = yes
	}
}
#対象国からの高圧的な要求
pbi_objective_publishing_industry_events.404 = {
	type = country_event
	placement = scope:target_state

	title = pbi_objective_publishing_industry_events.404.t
	desc = pbi_objective_publishing_industry_events.404.d
  flavor = pbi_objective_publishing_industry_events.404.f

  event_image = {
    video = "gfx/event_pictures/unspecific_signed_contract.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"
	
	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_telegram_incident > 5
		NOT = {
			has_variable = pbi_flag_did_objective_publishing_industry_events_404
		}
		exists = var:pbi_flag_selected_incident_target_state
	}

	immediate = {
		set_variable = pbi_flag_did_objective_publishing_industry_events_404
		var:pbi_flag_selected_incident_target = {
			save_scope_as = target_country
		}
		var:pbi_flag_selected_incident_target_state = {
			save_scope_as = target_state
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.404.a
		default_option = yes
	}
}
#会談の打ち切り
pbi_objective_publishing_industry_events.405 = {
	type = country_event
	placement = scope:target_state_2

	title = pbi_objective_publishing_industry_events.405.t
	desc = pbi_objective_publishing_industry_events.405.d
  flavor = pbi_objective_publishing_industry_events.405.f

  event_image = {
    video = "gfx/event_pictures/southamerica_aristocrats.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 1
	
	trigger = {
		var:pbi_var_je_objective_telegram_incident > 7
		NOT = {
			has_variable = pbi_flag_did_objective_publishing_industry_events_405
		}
		exists = var:pbi_flag_selected_incident_target_state
	}

	immediate = {
		set_variable = pbi_flag_did_objective_publishing_industry_events_405
		var:pbi_flag_selected_incident_target = {
			save_scope_as = target_country
		}
		var:pbi_flag_selected_incident_target_state = {
			save_scope_as = target_state
		}
		random_interest_group = {
			limit = {
				is_in_government = yes
			}
			leader = {
				save_scope_as = target_character
			}
		}
		random_scope_state = {
			limit = {
				NOT = {
					has_building = building_urban_center
				}
			}
			save_scope_as = target_state_2
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.405.a
		default_option = yes
		custom_tooltip = pbi_objective_publishing_industry_events.405.a.tt
	}
	option = {
		name = pbi_objective_publishing_industry_events.405.b
		custom_tooltip = pbi_objective_publishing_industry_events.405.b.tt
		set_variable = pbi_flag_concessions_to_incident_target
	}
}
#写真の力
pbi_objective_publishing_industry_events.500 = {
	type = country_event
	placement = root

	title = pbi_objective_publishing_industry_events.500.t
	desc = pbi_objective_publishing_industry_events.500.d
  flavor = pbi_objective_publishing_industry_events.500.f

  event_image = {
    video = "gfx/event_pictures/pbi_poor.bk2"
  }
  on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
  on_opened_soundeffect = "event:/SFX/Events/asia/factory_accident"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	duration = 3
	
	trigger = {
		NOT = {
			has_variable = pbi_flag_did_objective_publishing_industry_events_500
		}
	}

	immediate = {
		set_variable = pbi_flag_did_objective_publishing_industry_events_500
		if = {
			limit = {
				has_law = law_type:law_child_labor_allowed
			}
			random_interest_group = {
				limit = {
					law_stance = {
						law = law_type:law_child_labor_allowed
						value > neutral
					}
				}
				leader = {
					save_scope_as = target_character_1
				}
			}
		}
		if = {
			limit = {
				NAND = {
					has_law = law_type:law_wage_subsidies
					has_law = law_type:law_old_age_pension
				}
			}
			random_interest_group = {
				limit = {
					law_stance = {
						law = law_type:law_wage_subsidies
						value < neutral
					}
					leader = {
						NAND = {
							exists = scope:target_character_1
							THIS = scope:target_character_1
						}
					}
				}
				leader = {
					save_scope_as = target_character_2
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_law = law_type:law_multicultural
				}
			}
			random_interest_group = {
				limit = {
					law_stance = {
						law = law_type:law_multicultural
						value < neutral
					}
					leader = {
						NAND = {
							exists = scope:target_character_1
							THIS = scope:target_character_1
						}
						NAND = {
							exists = scope:target_character_2
							THIS = scope:target_character_2
						}
					}
				}
				leader = {
					save_scope_as = target_character_3
				}
			}
		}
	}

	option = {
		name = pbi_objective_publishing_industry_events.500.a
		default_option = yes
		add_modifier = {
			name = pbi_country_modifier_expansion_of_public_welfare
			months = long_modifier_time
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.500.b
		trigger = {
			exists = scope:target_character_1
		}
		scope:target_character_1 = {
			set_ideology = ideology_reformer
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.500.c
		trigger = {
			exists = scope:target_character_2
		}
		scope:target_character_2 = {
			set_ideology = ideology_social_democrat
		}
	}
	option = {
		name = pbi_objective_publishing_industry_events.500.e
		trigger = {
			exists = scope:target_character_3
		}
		scope:target_character_3 = {
			set_ideology = ideology_reformer
		}
	}
}
